@import "_markdown";

$baseLineHeight: #3184ff;

body, html {
  background: #f0f1f3;
  color: #1F2D3D;
}

html {
  font-size: 10px;
}

body {
  background: #f0f1f3;
  font-size: 1.4rem;
}

a {
  color: #1F2D3D;
}

ul {
  margin-bottom: 0;
}
.uk-navbar-nav>li>a, .uk-navbar-item, .uk-navbar-toggle {
  font-size: 1.4rem;
  height: 70px;
}

.uk-label-default {
  background-color: #e5e5e5;
  color: #666;
}
.uk-navbar-dropdown-nav {
  font-size: 1.4rem;
}

.dux-list {
  li {
    padding-bottom:10px;
    &:last-child {
      padding-bottom: 0;
    }
  }
}

.dux-header {
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
  font-size: 1.4rem;
}


.dux-footer {
  border-top: 1px solid #ddd;
  margin-top: 50px;
  width: 100%;
  padding: 40px;
}

.dux-topic-filter {
  padding: 0;
  margin: 0;
  list-style: none;
  li {
    padding: 1px 0;
    float: left;
    font-size: 1.4rem;
    margin-right: 10px;
    a {
      border-radius: 2px;
      padding: 2px 5px;
    }
    &.active {
      a {
        background: $baseLineHeight;
        color: #fff;
      }
    }
  }

}

.dux-node-list {
  margin: 0;
  li {
    padding: 10px 15px;
    margin: 0 !important;
    border-bottom: 1px solid #ddd;
    &:first-child {
      border-top: none;
    }
    .media {
      padding: 3px;
      img {
        width: 50px;
        height: 50px;
      }
    }
    .info {
      padding-left: 10px;
      padding-right: 10px;
      .info-title {
        font-size: 1.6rem;
        a {
          color: $baseLineHeight;
        }
      }
      .info-desc {
        color: #666;
      }

    }
    .count {
      color: #999;
      width: 70px;
      display: inline-block;
      text-align: right;
    }

  }
}

.dux-topic-list {
  margin: 0;
  li {
    padding: 5px 15px;
    border-bottom: 1px solid #eee;
    margin: 0 !important;
    &:hover {
      background: #f0f1f3;
    }
    &:first-child {
      border-top: none;
    }

  }
  .avatar {
    padding: 3px;
    img {
      width: 45px;
      height: 45px;
    }
  }
  .info {
    padding-left: 10px;
    .info-title {
      padding-top: 15px;
      white-space: nowrap;
      overflow: hidden;
      .am-badge {
        position: relative;
        top: -1px;
      }
      .title {
        color: #333;
      }
    }

  }
  .count {
    color: #999;
    width: 150px;
    display: inline-block;
    text-align: right;
    margin-top: 15px;
  }

}

.dux-side-node {
  dl {
    font-size: 1.4rem;
    dt {

    }
    dd {
      a {

      }
    }
    &:last-child {
      margin-bottom: 0;
    }
  }
}

.dux-more {
  a {
    display: block;
    background: #fff;
    border: none;
    padding: 10px;
    border-top: 1px solid #dfe6ec;
  }
}

.dux-topic-header {
  padding: 0 10px;
  h1 {
    margin: 1rem 0;
    font-weight: normal;
    color: #333;
  }
  .info {
    font-size: 1.2rem;
    color: #999;
    a {
      color: #999;
    }
  }
}

.dux-topic-body {
  padding: 20px;
  * {
    font-family: inherit;
  }
}

.dux-reply-list {
  list-style: none;
  margin: 0;
  padding: 0;
  li {
    padding: 10px 15px;
    border-top:1px solid #eee;
    &:first-child {
      border-top: none;
    }
    .avatar {
      width: 80px;
      text-align: center;

    }
    .info {
      padding-left: 10px;
      .info-head {
        color: #999;
        a {
          color: $baseLineHeight;
        }
        .operate {
          a {
            color: #ccc;
          }
        }
      }
      .info-intro {
        padding: 3px 0;
        font-size: 1.2rem;
        color: #999;
        a {
          color: #999;
        }
      }
      .info-content {
        padding: 5px 0;
        color: #333;
        a {
          color: $baseLineHeight;

        }
      }
    }
  }
}


.dux-topic-editor {
  .editor-info {
    background: #fff;
    padding: 10px;
    padding-left: 30px;
    border: 1px solid #dfe6ec;
    margin-bottom: 1.5rem;
  }
  textarea {
    background: #fff;
    border: 1px solid #dfe6ec;
    width: 100%;
    height: 150px;
    margin-bottom: 10px;
  }
}

.dux-topic-footer {
  padding: 10px 20px;
  .footer-tools {
    padding-top: 10px;
    font-size:1.6rem;
    a {
      margin-left:5px;
      color: #999;
      &:hover {
        color: $baseLineHeight;
      }
    }
  }
}

.dux-pages {
  text-align: center;
  a, span {
    font-size: 1.4rem;
    color: $baseLineHeight;
    padding: .5em 1em;
    text-decoration: none;
    line-height: 1.2;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 0;
    margin-bottom: 5px;
    margin-right: 5px;
  }
}

.am-badge {
  font-weight: normal;
}

.am-badge.am-badge-default {
  &, &:hover {
    background-color: #e5e5e5;
    color: #666;
  }
}

.dux-side-list {
  margin: 0;
  padding: 10px;
  > li {
    margin-bottom: 10px;
    line-height: 18px;
    border: none;
    a {
      color: #666;
      &:hover {
        text-decoration: underline;
      }
    }
  }

}

.dux-tags-list {
  list-style: none;
  margin: 0;
  padding: 0;
  li {
    padding: 15px 20px;
    h3 {
      margin: 0;
      font-size: 1.6rem;
      font-weight: normal;
    }
    p {
      margin: 0;
      color: #999;
    }
    a {
      &:hover {
        text-decoration: underline;
      }
    }
  }
}

.dux-book-list {
  list-style: none;
  li {
    padding: 10px;
    padding-top: 0;
    .book-items {
      border-top: 3px solid #ddd;
      padding: 15px 20px;
      background: #fff;
    }
    h3 {
      margin: 0;
      font-size: 1.6rem;
      font-weight: normal;
      padding-bottom: 10px;
    }
    p {
      margin: 0;
      padding-bottom: 10px;
      color: #999;
    }
    a {
      &:hover {
        text-decoration: underline;
      }
    }
  }
}

.dux-card {
  background: #fff;
  box-shadow: 0 1px 5px #ccc;
  padding: 10px 20px;
  color: #1F2D3D;
  margin-bottom:1.5rem;
  min-height: 92px;
  font-size: 1.2rem;
  .icon {
    float: left;
    padding-top:10px;
    text-align: center;
    img {
      width: 50px;
      height: 50px;
    }
  }
  .info {
    margin-top: 5px;
    margin-left:70px;
    h2 {
      margin: 0;
      font-size: 1.8rem;
    }
    p {
      margin: 0;
      margin-top: 5px;
      color: #666;
    }
  }
}

.dux-tab {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-bottom:1.5rem;
  li {
    display: inline-block;
    a {
      display: block;
      padding: .5em 1em;
      font-size:1.4rem;
      background: #fff;
      line-height:1.3;
    }
    &.active {
      a {
        background: $baseLineHeight;
        color: #fff;
      }
    }
  }
}

.dux-search-list {
  list-style: none;
  padding: 0;
  margin: 0;
  li {
    line-height: 25px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e4e4e4;
    &:last-child {
      border-bottom: none;
    }
    .highlight {
      color: #dc3b1f;
    }
    h2 {
      font-size:1.8rem;
      margin-bottom:1rem;
    }
    .info {
      margin-bottom: 6px;
      font-size: 12px;
        a {
          color: #23863F;
        }
    }
    .desc {
      color: #666;
      font-size: 14px;
      word-break: break-all;
      margin-bottom:1.5rem;
    }
  }
}

.dux-user-info {
  p {
    margin: 10px 0;
  }
  .info-tools {
    li {
      i {
        &:before {
          width: 25px;
          height: 25px;
          line-height:25px;
          text-align: center;
        }
      }
    }
  }
}

.dux-user-menu {
  margin: 0;
  li {
    &:first-child {
      border-top:none;
    }
    &:last-child {
      border-bottom:none;
    }
    i {
      margin-right:5px;
    }

  }

}


.dux-group-list {
  list-style: none;
  margin: 0;
  padding: 0 20px;
  li {
    padding: 10px 10px;
    border-bottom:1px solid #eee;
    .title {
      font-size:1.4rem;
      color: $baseLineHeight;
      &:hover {
        text-decoration: underline;
      }
    }
    .info {
      a {
        color: #999;
      }
      font-size:1.2rem;
      color: #999;

    }
    .desc {
      padding: 5px 0;
    }
  }

}

.error-page {
  background: #f0f1f3;
  padding: 80px 0 180px;
}

.error-page-main {
  background: #f9f9f9;
  margin: 0 auto;
  max-width: 620px;
  padding: 50px 50px 70px;
  box-shadow: 0 10px 30px 0 #ccc;
}

.error-page-main h3 {
  font-size: 2.4rem;
  font-weight: 400;
  border-bottom: 1px solid #d0d0d0
}

.error-page-main h3 strong {
  font-size: 5.4rem;
  font-weight: 400;
  margin-right: 20px
}

.error-page-main h4 {
  font-size: 2rem;
  font-weight: 400;
  color: #333
}

.error-page-actions {
  font-size: 0;
  z-index: 100;
}

.error-page-actions div {
  font-size: 1.4rem;
  padding: 30px 0 0 10px;
  color: #838383
}

.error-page-actions ol {
  list-style: decimal;
  padding-left: 20px
}

.error-page-actions li {
  line-height: 2.5em
}